package cn.kgc.se.day06.work;

import java.util.Scanner;

/**
 * @author 课工场
 * @date 2024/3/21
 * @description
 *  使用if选择结构判断一个整数，属于哪个范围：大于0；小于0；等于0
 */
public class Demo01 {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数字:");
        int number = scanner.nextInt();

        if (number>0){
            System.out.println("大于0");
        } else if (number<0) {
            System.out.println("小于0");
        }else {
            System.out.println("等于0");
        }
        
    }
}
